package com.suray.wcs.service.system.service;

import com.suray.wcs.service.system.bo.NotificationBO;
import com.suray.wcs.service.system.entity.NotificationDB;

import java.util.List;

public interface INotificationService {
    /**
     * 查询通知列表
     *
     * @param notificationDB
     * @return
     */
    List<NotificationDB> selectNoticeList(NotificationDB notificationDB);

    /**
     * 设置已读
     *
     * @param notificationIds
     */
    void readNotification(List<Long> notificationIds);

    /**
     * 设置全部已读
     *
     */
    void readAllNotification();

    /**
     * 创建通知
     *
     * @param notificationBO
     * @return
     */
    NotificationBO insertNotification(NotificationBO notificationBO);

    void deleteNotification(Integer days);

    int selectNoticeCount(byte notificationType);
}
